package com.kunbo.entity;

import java.util.*;

public class User{

    private int Id;

    private String username;

    private String password;
    /**
     * type 0表示普通用户 1表示公司工程师 2表示系统创造者
     */
    private int type;

    private int status;

    private Date creatTime;

    @Override
    public int hashCode() {
        return Objects.hash(password);
    }

    public User() {
    }

    public User(int id, String username, String password, int type, int status, Date creatTime, int ticket) {
        Id = id;
        this.username = username;
        this.password = password;
        this.type = type;
        this.status = status;
        this.creatTime = creatTime;
    }

    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

}
